package com.sansui.blog.pojo;

import com.sansui.blog.pojo.sys.SysRole;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @name: User
 * @author: Sansui
 * @Software: IDEA
 * @Blog: https://www.cnblogs.com/sansui6/
 * @date: 2022-03-18 22:53
 **/

/*user 实体类*/
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class User {

    private Long id;//	bigint	自增序号
    private String uid;//	varchar	用户id
    private String username;//	varchar	用户名
    private String password;//	varchar	密码
    private Date createTime;//	datetime	注册时间
    private Date updateTime;//	datetime	更新时间
    private String role;//	varchar	角色
    private Integer status;//	char	状态

    // 一个用户对应多个博客
    private List<Blog> blogs = new ArrayList<>();;
    private UserInfo userInfo;
    private List<UserLoginLog> userLoginLogs = new ArrayList<>();

    private SysRole sysRole;


}
